import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  {
    path: '/user-management',
    name: 'UserManagement',
    component: () => import('../views/UserManagement.vue')
  },
  {
    path: '/city-management',
    name: 'CityManagement',
    component: () => import('../views/CityManagement.vue')
  },
  {
    path: '/food-management',
    name: 'FoodManagement',
    component: () => import('../views/FoodManagement.vue')
  },
  {
    path: '/spot-management',
    name: 'SpotManagement',
    component: () => import('../views/SpotManagement.vue')
  },
  {
    path: '/travelogue-management',
    name: 'TravelogueManagement',
    component: () => import('../views/TravelogueManagement.vue')
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
